//创建一个飞机，并降落，飞行员自动到乘客位
params ["_pos", "_type"];

private _veh = 	createVehicle [_type, _pos getPos [2000, random 360] , [], 100, "FLY"];
_veh engineOn true;
_veh allowDamage false;

createVehicleCrew _veh;


_veh move _pos;
sleep 3;
while { (alive _veh) && {!unitReady _veh} } do
{
	sleep 1;
};

if (alive _veh) then
{
	_veh land "LAND";
};

//引擎关闭或高度小于0.2米
waitUntil{Sleep 5;!isEngineOn _veh || {((position _veh) select 2) < 0.2 }};

_veh engineOn false;
_veh allowDamage true;

private _cargos = crew _veh;
{
	{ unassignVehicle _x;}//moveOut _x;
}forEach _cargos;
_cargos allowGetIn false;

_veh